package Ajedrez.visual.Tablero;

import java.awt.event.*;
import javax.swing.*;

public class Salir extends JPanel
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	JButton Salir;
	
	public Salir()
	{
		Salir = new JButton("Salir");
		
		Salir.addActionListener(new ActionListener()
		{
			
			@Override
			public void actionPerformed(ActionEvent e)
			{
				System.exit(0);
			}
		});
		
		this.add(Salir);
	}
	
	public static void main(String[] args)
	{
		JFrame f = new JFrame();
		f.add(new Salir());
		f.setVisible(true);
	}

}
